﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PACKETPARSERMAX20.CORE
{
    public class GossipMessage
    {
        public UInt64 npcGUID;
        public UInt32 Unk1;// new 2.4.0
        public UInt32 TitleTextId;
        public UInt32 GossipMenuItemCount; // max count 0x0F
        public UInt32 QuestMenuItemCount;//data << uint32( pQuestMenu->MenuItemCount() );

        public SortedList<int, GossipMenuItem> GossipMenuItemList = new SortedList<int, GossipMenuItem>();
        public SortedList<int, QuestMenueItem> QuestMenueItemList = new SortedList<int, QuestMenueItem>();

        public class GossipMenuItem
        {
            public UInt32 index;
            public byte Icon;
            public byte byte_1;
            public byte byte_2;
            public byte byte_3;
            public byte coded;//data << uint8( pGossipMenu->GetItem(iI).m_gCoded );
            public UInt32 moneyrequired;//data << uint32(0);                                  // req money to open menu, 2.0.3
            public string message;//data << pGossipMenu->GetItem(iI).m_gMessage;
            public string BoxMessage;//data << uint8(0);  
        }

        public class QuestMenueItem
        {
            public UInt32 questID;//uint32 questID = pQuestMenu->GetItem(iI).m_qId;
            public UInt32 Icon;//data << uint32( pQuestMenu->GetItem(iI).m_qIcon );
            public UInt32 Level;//data << uint32( pQuest ? pQuest->GetQuestLevel() : 0 );
            public string Title;//std::string Title = pQuest->GetTitle();

        }
    }


}
